import { defHttp } from '@/utils/http/axios'

enum Api {
  listOne = 'Warnings',
  list = 'Warnings/Realtime/Count',
  del = 'Warnings/Discharge',
  ParentUrl = "Roles/RoleMenuTreesParentUrl"

}

/**
 * 列表接口
 * @param params
 */
export const list = (params) => {
  return defHttp.get({ url: Api.list, params });
};
export const del = (data) => {
  return defHttp.post({ url: Api.del, data });
};
export const listpage = (params) => {
  return defHttp.get({ url: 'Warnings', params });
};
export function ParentList(params) {
  return defHttp.get({ url: Api.ParentUrl, params })
}